<form method="post" action="">
    <?php
    wp_nonce_field($slug.'_mobile_review', $slug.'_mobile_review_nonce');
    ?>
    <input type="hidden" name="ID" value="<?php echo $id; ?>" />

    <label for="name">Name: (Please note, everything entered here may be published.)</label>
    <input type="text" name="name" required />

    <?php
    if (!$email) { ?>
    <label for="email">E-Mail:</label>
    <input type="email" name="email" id="email" required />
    <?php } ?>

    <?php
    if ($sms) { ?>
    <label for="mobile">Mobile Number:</label>
    <input type="mobile" name="mobile" id="mobile" required />
    <?php } ?>

    <label for="rating">Rating:</label>
    <select name="rating" id="rating">
        <option disabled selected>Select one</option>
        <option value="5">5 stars</option>
        <option value="4">4 stars</option>
        <option value="3">3 stars</option>
        <option value="2">2 stars</option>
        <option value="1">1 star</option>

    </select>

    <label for="review">Review:</label>
    <textarea name="review" id="review" required></textarea>

    <input type="submit" value="Submit" name="submit">
</form>
